package com.zeldu.exam.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zeldu.exam.pojo.exam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface
examDao extends BaseMapper<exam> {
    @Select("select * from exam where course_id")
    List<exam> queryAll();

//    exam queryById(Long id);

    List<exam> queryByTeacherId(Long id);

    int insert(exam exam);

}
